#include <stdio.h>
int main()
{
	int b = 0;
	int a = 0;
	for (a = 1; a < 5; a++)
	{
		for (b = 4 - a; b != 0; b--)
		{
			printf("%c", ' ');
		}
		int c = 0;
		for (c = 1; c <= 2 * a - 1; c++)
		{
			printf("*");
		}
		printf("\n");
	}
	for (a = 4; a > 0; a--)
	{
		for (b = a; b < 5; b++)
		{
			printf("%c", ' ');
		}
		int c = 0;
		for (c = 1; c < 2 * a -2; c++)
		{
			printf("*");
		}
		printf("\n");
	}
	return 0;
}